package com.chixing.day07_abstract;

public class FatherTest {
    public static void main(String[] args) {
        Son s1 = new Son();
        s1.f1();//父类继承
        s1.f2();//父类继承
        s1.s1();
        s1.s2();

        //XX xx = new Son();
        //xx.(XX 类中自己的方法 + XX 父类的 )

        Father father = new Son();
        father.f1();
        father.f2();
        father.hashCode();//父类继承
        father.f3();//father 编译时候 调用的是父类的， 运行的是子类的
    }

}
